import { checkActor } from "../utils/mirUtil";


export function Main(Npc: TNormNpc, Player: TPlayObject, Args: TArgs) {
    let slaveList: TActorList = Player.GetSlaveList();
    if (slaveList.Count > 0) {
        for (let i = 0; i < slaveList.Count; i++) {
            let salve: TActor = slaveList.Actor(i);
            if (checkActor(salve)) {
                salve.MakeGhost();
            }
        }
    }

    let newSlave: TActor = Player.Recallmob('宠物半兽人', 3);
    newSlave.WalkSpeed = 500;
    newSlave.AttackSpeed = 1000;
    newSlave.AddSkill('半月弯刀', 3);
}